package com.foreknow.demo2;

public class Student {
    public static void main(String[] args) {
        //学号
        int sid = 101;
        //姓名
        String name = "张三";
        //性别(char String int boolean)
        char sex = '男';
        //String sex = "男";
        //int sex = 1;
        //boolean sex = true;
        //年龄
        int age = 12;
        //所在学校
        String school = "东北大学";
        //地址
        String  address = "shenyang";
        //花费
        double money = 1234.56;
        //注意：任何基本数据类型与String（字符串）连接(+)后，最终的类型都为字符串类型
        System.out.println("学号: " + sid + "\n" + "姓名: " + name);

        String a = age + school;
        System.out.println(a);
        System.out.println(age + school);



    }
}
